package com.ruoyi.admin.domain.vo.request.returnGood;

import com.ruoyi.admin.domain.entity.ReturnGoodsModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.beans.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 退货表添加参数实体
 *
 * @author jianhan
 * @date 2023-02-01 13:51:12
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ReturnGoodsUpdateRequest {


    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "排单表id", required = true)
    private Long schedulingId;

    @ApiModelProperty(value = "退回数量", required = true)
    private Integer returnNum;

    /**
     * 获取实体对象
     *
     * @return 对象
     * @author jianhan
     * @date 2023-02-01 13:51:12
     **/
    @ApiModelProperty(hidden = true)
    public ReturnGoodsModel getReturnGoodsModel() {
        ReturnGoodsModel returnGoodsModel = new ReturnGoodsModel();
        BeanUtils.copyProperties(this, returnGoodsModel);
        return returnGoodsModel;
    }

}
